---
title: Checkbox
description: Let users confirm or reject an option.
lastUpdated: 13 Feb, 2024
links:
  api_reference: https://www.radix-ui.com/primitives/docs/components/checkbox#api-reference
  source: https://github.com/Logging-Stuff/RetroUI/blob/main/components/retroui/Checkbox.tsx
---

<ComponentShowcase name="checkbox-style-default" />
<br />
<br />

## Installation

<ComponentInstall>
  <ComponentInstall.Cli npmCommand="npx shadcn@latest add @retroui/checkbox" />
  <ComponentInstall.Manual>
  
#### 1. Install dependencies:

```sh
npm install @radix-ui/react-checkbox class-variance-authority lucide-react
```

<br />

#### 2. Copy the code 👇 into your project:

<ComponentSource name="checkbox" />

  </ComponentInstall.Manual>
</ComponentInstall>

<br />
<br />

## Examples

### Variants

<ComponentShowcase name="checkbox-style-variants" />
<br />
<br />

### Sizes

<ComponentShowcase name="checkbox-style-sizes" />
